Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.0](backport #15976) Change server information endpoint / to only accept GET and HEAD requests #16016

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 5, 2025

Motivation/summary

Breaking change to change server information endpoint / to only accept GET and HEAD requests, and return 405 Method Not Allowed otherwise. This will surface any agent misconfiguration, e.g. configuring otlphttp to send to / instead of /v1/traces.

Checklist

For functional changes, consider:

  • Is it observable through the addition of either logging or metrics?
  • Is its use being published in telemetry to enable product improvement?
  • Have system tests been added to avoid regression?

How to test these changes

curl -XGET -v http://apm-server/
curl -XHEAD -v http://apm-server/
curl -XPOST -v http://apm-server/

Confirm that GET and HEAD requests return 200, POST requests return 405.

Related issues

Fixes #15965


This is an automatic backport of pull request #15976 done by [Mergify](https://mergify.com).

…quests (#15976)

Breaking change to change server information endpoint / to only accept GET and HEAD requests, and return 405 Method Not Allowed otherwise. This will surface any agent misconfiguration, e.g. configuring otlphttp to send to / instead of /v1/traces.

(cherry picked from commit 2aaa73a)
@mergify mergify bot requested a review from a team as a code owner March 5, 2025 14:20
@mergify mergify bot added the backport label Mar 5, 2025
@mergify mergify bot merged commit 69e6c5b into 9.0 Mar 5, 2025
15 of 16 checks passed
@mergify mergify bot deleted the mergify/bp/9.0/pr-15976 branch March 5, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant